@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary-color: #000;
}
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.container{
    position: relative;
    max-width: 1400px;
    width: 100%;
    border-radius: 6px;
    padding: 30px;
    margin: 0 15px;
    background-color: #ffffff;
    box-shadow: 0 5px 100px rgba(0,0,0,0.1);
    height: 80vh; /* Set a fixed height to the container */
    overflow-y: auto; /* Add vertical scroll if the content overflows */
}

.container a{
    font-size: 13px;
    font-weight: 500;
}
.container header{
    padding-top: 40px;
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.logo {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 85px; 
    height: auto; 
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center; 
    text-align: center;
}
.input-field.required label::after {
  content: " * (Wajib Diisi)";
  color: red;
  display: inline;
  font-size: 10px;
}
.input-f.required label::after {
  content: " * (Wajib Pilih)";
  color: red;
  display: inline;
  font-size: 10px;
}
.title.required::after {
  content: " * (Wajib Diisi Semua)";
  color: red;
  font-size: 13px;
}
.container header::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 27px;
    border-radius: 8px;
    background-color: #4070f4;
}

.container form{
    position: relative;
    margin-top: 16px;
    max-height: 100%;
    background-color: #fff;
}
.container form .form{
    position: absolute;
    background-color: #fff;
    transition: 0.3s ease;
}
.container form .form.second{
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}
form.secActive .form.second{
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
form.secActive .form.first{
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

.container form .title{
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    margin: 6px 0;
    color: #333;
    align-items: end;
}
.container form .fields{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.container form .fields2{
    display: flex;
    align-self: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.container form .fields2 label{
        display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center; 
    text-align: center;
}
.ktp {
    text-align: right; /* Aligns the text within the div to the right */
    margin-top: 10px; /* Adjust the top margin as needed */
    text-align-last: end;
} 
.ktp label{
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center; 
    text-align: center;
} 
form .fields .input-field{
    display: flex;
    width: calc(100% / 3 - 15px);
    flex-direction: column;
    margin: 4px 0;
}
.input-field label{
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 4px;
}
.input-field input, select{
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field input :focus,
.input-field select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
}
.input-field input[type="date"]{
    color: #707070;
}
.input-field input[type="date"]:valid{
    color: #333;
}
.input-field input[type="radio"] {
    appearance: none;
    display: flex;
    align-items: center; 
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 10px;
    margin: 1px auto;
    align-content: center;
    cursor: pointer;
}
.input-f input[type="radio"] {
    appearance: none;
    display: flex;
    align-items: center; 
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 10px;
    margin: 1px auto;
    align-content: center;
    cursor: pointer;
}
.input-field input[type="checkbox"] {
    appearance: none;
    display: flex;
    align-items: center; 
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 10px;
    margin: 1px auto;
    cursor: pointer;
}
.input-f input[type="checkbox"] {
    appearance: none;
    display: flex;
    align-items: center; 
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 10px;
    margin: 1px auto;
    cursor: pointer;
}
.input-field input[type="checkbox"]:checked {
    background-color: #4874f4;
    border-color: #FFFFFFF;
}
.input-f input[type="checkbox"]:checked {
    background-color: #4874f4;
    border-color: #FFFFFFF;
}
.input-field select {
    width: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-f select {
    width: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field option {
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field input[type="radio"]:checked {
    background-color: #4874f4;
    border-color: #FFFFFFF;
}
.input-f input[type="radio"]:checked {
    background-color: #4874f4;
    border-color: #FFFFFFF;
}
.input-field textarea {
    resize: none; /* Prevents resizing */
    white-space: pre-wrap; /* Allows text to wrap within the fixed width and height */
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 8px 15px; /* Padding adjustments for better appearance */
    height: 120px; /* Fixed height */
    width: 653px; /* Fixed width */
    margin: 8px 0;
}

/*input-f */

form .fields .input-f{
    display: flex;
    /*width: calc(100% / 4 - 15px);*/
    flex-direction: column;
    margin: 4px 0;
}
.input-f label{
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
}
.input-f {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align the label and input to the start (left) */
}
.input-f input :focus,
.input-f select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
}
.input-f input, select{
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    width: 150px;
    margin: 8px 0;
}
.input-f textarea {
    resize: none; /* Prevents resizing */
    white-space: pre-wrap; /* Allows text to wrap within the fixed width and height */
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 8px 15px; /* Padding adjustments for better appearance */
    height: 200px; /* Fixed height */
    width: 1340px; /* Fixed width */
    margin: 8px 0;
}
.clear-button {
    color: var(--primary-color);
}
form .fields .textPaket{
    display: flex;
    width: calc(100% / 3 - 15px);
    flex-direction: column;
    margin: 8px 0;
}
.container form button, .backBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin: 25px 0;
    background-color: #4070f4;
    transition: all 0.3s linear;
    cursor: pointer;
}
.container form .btnText{
    font-size: 14px;
    font-weight: 400;
}
form button:hover{
    background-color: #265df2;
}
form button i,
form .backBtn i{
    margin: 0 6px;
}
form .backBtn i{
    transform: rotate(180deg);
}
form .buttons{
    display: flex;
    align-items: center;
}
form .buttons 
form .buttons button , .backBtn{
    margin-right: 14px;
}

.email {
    width: 430px;
}

.notification-panel {
    position: fixed; /* Change to fixed position */
    top: 0;
    left: 0; /* Add left: 0 to make it span the entire width */
    width: 100%;
    padding: 10px;
    text-align: center;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease-in-out;
}

.notification-panel.success {
    background-color: green;
    color: white;
}

.notification-panel.error {
    background-color: red;
    color: white;
}

@media (max-width: 1800px)
{
    form .fields .input-field,
    form .fields .input-f {
        width: 100%; /* Make all fields full-width */
    }
    .input-f label,
    .input-field label {
        font-size: 14px; /* Adjust label font size */
    }
    form .fields .input-field input,
    form .fields .input-field select,
    form .fields .input-f input,
    form .fields .input-f select,
    form .fields .input-f textarea {
        width: 100%; /* Full-width input/select/textarea */
    }
    form .fields .input-f textarea {
        max-width: 100%; /* Limit the max width of the textarea to 100% */
    }
}

@media (max-width: 550px) {
    form .fields .input-field,
    form .fields .input-f {
        width: 100%; /* Make all fields full-width for smaller screens */
    }
    form .fields .input-field input,
    form .fields .input-field select,
    form .fields .input-f input,
    form .fields .input-f select,
    form .fields .input-f textarea {
        width: 100%; /* Full-width input/select/textarea for smaller screens */
    }
    
}
